package com.tm.chargecar.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tm.chargecar.entity.WarnEntity;
import com.tm.chargecar.vo.WarnVo;
import com.tm.chargecar.mapper.WarnMapper;
import com.tm.chargecar.service.WarnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WarnServiceImpl extends ServiceImpl<WarnMapper, WarnEntity> implements WarnService {

    @Autowired
    private WarnMapper warnMapper;
    @Override
    public List<WarnEntity> queryWarn(WarnVo warnVo) {
        return warnMapper.queryWarn(warnVo);
    }

    @Override
    public void addWarn(WarnEntity warnEntity) {
        warnMapper.addWarn(warnEntity);
    }
}
